<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            padding-bottom: 800px;
            padding-left: 30px;
        }
        .cbox{
            border: 1px solid #999;
            padding: 20px;
            margin-bottom: 10px;
        }
        .btn{
            border: 1px solid #ccc;
            display: inline-block;
            padding: 10px;
            margin: 10px;
        }
    </style>
    <link rel="stylesheet" href="../../assets/element/index.css">
</head>
<body>
    <div id="app">
        <p>createApp</p>
        <el-button type="primary">Primary</el-button>
        <el-button type="success">Success</el-button>
        <el-button type="info">Info</el-button>
        <el-button type="warning">Warning</el-button>
        <el-button type="danger">Danger</el-button>
        <hr>
        <my-btn type="primary"></my-btn>
        <my-btn type="success" size="large"></my-btn>
        <my-btn type="info" size="small"></my-btn>
        <my-btn info="info变量" type="warning"></my-btn>
        <my-btn type="danger"></my-btn>

    </div>
    <script src="../../assets/vue3/vue.global.js"></script>
    <script src="../../assets/element/index.full.js"></script>
    <script type="module">

        const MyBtn = {
            template:`
                <div class="btn">
                    |
                    <el-button v-bind="$attrs">Primary</el-button>
                    |
                </div>
            `,
            props: {
                info: {
                    type: String,
                    default: ""
                },
            },
        }

        Vue.createApp({
            components: {
                MyBtn,
            },
            data(){
                return {
                    
                }
            },
        }).use(ElementPlus)
          .mount("#app")
    </script>
</body>
</html>